using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UIElements;

public class EnemyDogFish : EnemyBasic
{
    public GameObject ballet;
    // Start is called before the first frame update
    void Start()
    {
        base.Start();
        flip = -1;
    }

    // Update is called once per frame
    void Update()
    {
        base.Update();
    }
    void BalletAttack()
    {
        Vector3 vector = transform.position;
        vector.x += enemyAttack.face*1.9f;
        vector.y -=  1.2f;
        if (enemyAttack.face == 1)
            Instantiate(ballet, vector, Quaternion.identity);
        else
        {
            Instantiate(ballet, vector, Quaternion.Euler(0, 180, 0));
        }
    }
}
